package com.educate.msmservice.controller;


import com.baomidou.mybatisplus.extension.api.R;
import com.educate.commonutils.ResultOne;
import com.educate.msmservice.service.MsmService;
import com.educate.msmservice.utils.RandomUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

import java.util.Map;

@RestController
@RequestMapping("/edumsm/msm")
@CrossOrigin
public class MsmController {
    @Autowired
    private MsmService msmService;
    @GetMapping("/send/{phone}")
    public ResultOne send(@PathVariable("phone")String phone){
        msmService.send(phone);
        return ResultOne.ok();
    }

}
